package cn.itsource.exam.mapper;

import cn.itsource.exam.domain.ClassInfo;
import cn.itsource.exam.domain.Exam;
import cn.itsource.exam.query.ClassInfoQuery;
import cn.itsource.exam.query.ExamQuery;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface ClassInfoMapper extends BaseMapper<ClassInfo> {
    public List<ClassInfo> selectClassList(ClassInfoQuery query);
    public Integer countClassList(ClassInfoQuery query);

    List<ClassInfo> selectList(Integer type);

    /**
     * 批量删除
     * @param list
     * @return
     */
    int batchdel(List<String> list);

    /**
     * 根据班级名字或班号查询班级信息
     * @param classname
     * @return
     */
    List<ClassInfo> selectByCondition(@Param("classname")String classname);
}
